<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增牛奶上报')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-milk-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">上报时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="reportDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">班级：</label>
                <div class="col-sm-8">
                    <input name="className" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">院区：</label>
                <div class="col-sm-8">
                    <input name="campus" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">阶段，一阶、二阶、三阶、四阶：</label>
                <div class="col-sm-8">
                    <select name="phase" class="form-control m-b" th:with="type=${@dict.getType('meal_mikl_phase')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">填报人：</label>
                <div class="col-sm-8">
                    <input name="reportingPerson" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">6:00-120ml_水奶：</label>
                <div class="col-sm-8">
                    <input name="water6120" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">6:00-200ml_水奶：</label>
                <div class="col-sm-8">
                    <input name="water6200" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">6:00-200ml_奶糊：</label>
                <div class="col-sm-8">
                    <input name="paste6200" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">6:00-特瓶：</label>
                <div class="col-sm-8">
                    <input name="paste6Te" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">6:00-空瓶：</label>
                <div class="col-sm-8">
                    <input name="empty6" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">9:00-120ml_水奶：</label>
                <div class="col-sm-8">
                    <input name="water9120" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">9:00-200ml_水奶：</label>
                <div class="col-sm-8">
                    <input name="water9200" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">9:00-200ml_奶糊：</label>
                <div class="col-sm-8">
                    <input name="paste9200" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">9:00-特瓶：</label>
                <div class="col-sm-8">
                    <input name="paste9Te" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">9:00-空瓶：</label>
                <div class="col-sm-8">
                    <input name="empty9" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">13:00-120ml_水奶：</label>
                <div class="col-sm-8">
                    <input name="water13120" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">13:00-200ml_水奶：</label>
                <div class="col-sm-8">
                    <input name="water13200" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">13:00-200ml_奶糊：</label>
                <div class="col-sm-8">
                    <input name="paste13200" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">13:00-特瓶：</label>
                <div class="col-sm-8">
                    <input name="paste13Te" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">13:00-空瓶：</label>
                <div class="col-sm-8">
                    <input name="empty13" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">16:00-120ml_水奶：</label>
                <div class="col-sm-8">
                    <input name="water16120" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">16:00-200ml_水奶：</label>
                <div class="col-sm-8">
                    <input name="water16200" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">16:00-200ml_奶糊：</label>
                <div class="col-sm-8">
                    <input name="paste16200" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">16:00-特瓶：</label>
                <div class="col-sm-8">
                    <input name="paste16Te" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">16:00-空瓶：</label>
                <div class="col-sm-8">
                    <input name="empty16" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">20:00-120ml_水奶：</label>
                <div class="col-sm-8">
                    <input name="water20120" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">20:00-200ml_水奶：</label>
                <div class="col-sm-8">
                    <input name="water20200" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">20:00-200ml_奶糊：</label>
                <div class="col-sm-8">
                    <input name="paste20200" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">20:00-特瓶：</label>
                <div class="col-sm-8">
                    <input name="paste20Te" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">20:00-空瓶：</label>
                <div class="col-sm-8">
                    <input name="empty20" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "meal/milk"
        $("#form-milk-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-milk-add').serialize());
            }
        }

        $("input[name='reportDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>